package de.bensoft.jrail.business.service.util;

import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class EntityManagerProvider {

	@Produces
	private EntityManager produceEntityManager() {
		EntityManagerFactory factory = Persistence.createEntityManagerFactory("jrail");
		return factory.createEntityManager();
	}
}
